import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 工作台
     { path: '/',
       component: () => import('../views/workbench.vue')
    },
    // 园区管理
    { path: '/building',
    component: () => import('../views/Park/Building.vue')
    },
    { path: '/business',
    component: () => import('../views/Park/BusinessManagement.vue')
    },
    // 行车管理
    { path: '/regional',
    component: () => import('../views/car/RegionalManagement.vue')
    },
    { path: '/parking',
    component: () => import('../views/car/ParkingPayment.vue')
    },
    { path: '/monthly',
    component: () => import('../views/car/MonthlyCardManagement.vue')
    },
    { path: '/billing',
    component: () => import('../views/car/BillingRules.vue')
    },
    // 物业费管理
    { path: '/property',
    component: () => import('../views/PropertyFee.vue')
    },
    // 一体杆管理
    { path: '/alarm',
    component: () => import('../views/IntegratedRod/AlarmLog.vue')
    },
    { path: '/integrated',
    component: () => import('../views/IntegratedRod/IntegratedRod.vue')
    },
    // 系统管理
    { path: '/employee',
    component: () => import('../views/SystemManagement/EmployeePrinciples.vue')
    },
    { path: '/role',
    component: () => import('../views/SystemManagement/RoleManagement.vue')
    },
    { path: '/login',
    component: () => import('../views/login.vue')
    },
  ]
})

export default router
